package Java.j2;

import java.util.Scanner;

public class AcWing_665 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        if (A < B){
            A ^= B;
            B ^= A;
            A ^= B;
        }

        if (A % B == 0){
            System.out.println("Sao Multiplos");
        } else {
            System.out.println("Nao sao Multiplos");
        }
    }
}
